/*
 * Copyright (c) 2014. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package com.dc.gameserver.serverCore.model.dbsql.modelVo;

import java.io.Serializable;

public class TPointPrograss implements Serializable {
    private Integer id;

    private Integer pointid;

    private Byte pointstarnum;

    private Byte pointstatus;

    private Integer belongareaid;

    private Integer completenum;

    private Integer roleid;

    private Integer pointpercompletenum;

    private Integer pointlasttimes;

    private Byte pointtype;

    private Boolean firststartrward;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPointid() {
        return pointid;
    }

    public void setPointid(Integer pointid) {
        this.pointid = pointid;
    }

    public Byte getPointstarnum() {
        return pointstarnum;
    }

    public void setPointstarnum(Byte pointstarnum) {
        this.pointstarnum = pointstarnum;
    }

    public Byte getPointstatus() {
        return pointstatus;
    }

    public void setPointstatus(Byte pointstatus) {
        this.pointstatus = pointstatus;
    }

    public Integer getBelongareaid() {
        return belongareaid;
    }

    public void setBelongareaid(Integer belongareaid) {
        this.belongareaid = belongareaid;
    }

    public Integer getCompletenum() {
        return completenum;
    }

    public void setCompletenum(Integer completenum) {
        this.completenum = completenum;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getPointpercompletenum() {
        return pointpercompletenum;
    }

    public void setPointpercompletenum(Integer pointpercompletenum) {
        this.pointpercompletenum = pointpercompletenum;
    }

    public Integer getPointlasttimes() {
        return pointlasttimes;
    }

    public void setPointlasttimes(Integer pointlasttimes) {
        this.pointlasttimes = pointlasttimes;
    }

    public Byte getPointtype() {
        return pointtype;
    }

    public void setPointtype(Byte pointtype) {
        this.pointtype = pointtype;
    }

    public Boolean getFirststartrward() {
        return firststartrward;
    }

    public void setFirststartrward(Boolean firststartrward) {
        this.firststartrward = firststartrward;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TPointPrograss other = (TPointPrograss) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPointid() == null ? other.getPointid() == null : this.getPointid().equals(other.getPointid()))
            && (this.getPointstarnum() == null ? other.getPointstarnum() == null : this.getPointstarnum().equals(other.getPointstarnum()))
            && (this.getPointstatus() == null ? other.getPointstatus() == null : this.getPointstatus().equals(other.getPointstatus()))
            && (this.getBelongareaid() == null ? other.getBelongareaid() == null : this.getBelongareaid().equals(other.getBelongareaid()))
            && (this.getCompletenum() == null ? other.getCompletenum() == null : this.getCompletenum().equals(other.getCompletenum()))
            && (this.getRoleid() == null ? other.getRoleid() == null : this.getRoleid().equals(other.getRoleid()))
            && (this.getPointpercompletenum() == null ? other.getPointpercompletenum() == null : this.getPointpercompletenum().equals(other.getPointpercompletenum()))
            && (this.getPointlasttimes() == null ? other.getPointlasttimes() == null : this.getPointlasttimes().equals(other.getPointlasttimes()))
            && (this.getPointtype() == null ? other.getPointtype() == null : this.getPointtype().equals(other.getPointtype()))
            && (this.getFirststartrward() == null ? other.getFirststartrward() == null : this.getFirststartrward().equals(other.getFirststartrward()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPointid() == null) ? 0 : getPointid().hashCode());
        result = prime * result + ((getPointstarnum() == null) ? 0 : getPointstarnum().hashCode());
        result = prime * result + ((getPointstatus() == null) ? 0 : getPointstatus().hashCode());
        result = prime * result + ((getBelongareaid() == null) ? 0 : getBelongareaid().hashCode());
        result = prime * result + ((getCompletenum() == null) ? 0 : getCompletenum().hashCode());
        result = prime * result + ((getRoleid() == null) ? 0 : getRoleid().hashCode());
        result = prime * result + ((getPointpercompletenum() == null) ? 0 : getPointpercompletenum().hashCode());
        result = prime * result + ((getPointlasttimes() == null) ? 0 : getPointlasttimes().hashCode());
        result = prime * result + ((getPointtype() == null) ? 0 : getPointtype().hashCode());
        result = prime * result + ((getFirststartrward() == null) ? 0 : getFirststartrward().hashCode());
        return result;
    }
}